package com.lizhi.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum TaskTotalState {
    NOT_START("not_start"),
    DISPATCHED("dispatched"),
    EXECUTING("executing"),
    SUB_TASK_FAILED("sub_task_failed"),
    SUCCESS("success"),
    FAILED_OVER("failed_over"),
    ;
    @EnumValue
    private final String code;

    TaskTotalState(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String toString() {
        return code;
    }
}
